package com.carol.lmsbe.dto;

import jakarta.validation.Valid;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.util.List;

/**
 * 创建易耗品计划请求
 */
@Data
public class ConsumablePlanCreateRequest {

    @NotBlank(message = "学期不能为空")
    private String semester;

    @NotNull(message = "实验室ID不能为空")
    private Long laboratoryId;


    @NotEmpty(message = "计划明细不能为空")
    @Valid
    private List<ConsumableItemCreateRequest> items;
}
